package edu.xidian.forum.service;

import com.baomidou.mybatisplus.extension.service.IService;
import edu.xidian.forum.dto.CommentDto;
import edu.xidian.forum.entity.Comment;
import edu.xidian.forum.entity.User;
import edu.xidian.forum.vo.CommentVO;

import java.util.List;


public interface CommentService extends IService<Comment> {
    /**
     * @param topicid
     * @return {@link Comment}
     */
    List<CommentVO> getCommentsByTopicID(String topicid);

    Comment create(CommentDto dto, User principal);
}